package com.slkj.shilixiaoyuanapp.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created  on 2018-08-02
 *
 * @author 唐开阔
 * @describe
 */
public class HomeWorkDetailEntity

{

    /**
     * hId : 34
     * hType : 作业本
     * className : 2017级2班
     * endTime : 2018-08-02 13:59:03
     * sendAll : 0
     * body : 学姐辛苦了小懒猪
     * img : ["/images/school0/homework/1533189412537.jpg","/images/school0/homework/1533189412539.jpg","/images/school0/homework/1533189412542.jpg","/images/school0/homework/1533189412544.jpg"]
     * inTime : 2018-08-02 13:56:53
     * delivered : [{"level":"A","comment":"好","name":"唐欣然"},{"level":"A","comment":"很好","name":"李沁翼"}]
     * unpaid : ["舒欣","马思媛"]
     */

    private int hId;
    private String hType;
    private String className;
    private String endTime;
    private int sendAll;
    private String body;
    private String inTime;
    private String knowledge;
    private ArrayList<String> img;
    private List<DeliveredEntity> delivered;
    private List<String> unpaid;
    private String subjectName;
    private int urge;
    private String shows;

    public int getUrge() {
        return urge;
    }

    public boolean isUrge(){
        return urge==1;
    }
    /**
     * 是否能提醒
     * @return
     */
    public boolean isCanTx(){
        return  urge!=1;
    }
    public void setUrge(int urge) {
        this.urge = urge;
    }

    public String getShows() {
        return shows;
    }

    public void setShows(String shows) {
        this.shows = shows;
    }

    public int gethId() {
        return hId;
    }

    public void sethId(int hId) {
        this.hId = hId;
    }

    public String gethType() {
        return hType;
    }

    public void sethType(String hType) {
        this.hType = hType;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(String knowledge) {
        this.knowledge = knowledge;
    }

    public int getHId() {
        return hId;
    }

    public void setHId(int hId) {
        this.hId = hId;
    }

    public String getHType() {
        return hType;
    }

    public void setHType(String hType) {
        this.hType = hType;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getSendAll() {
        return sendAll;
    }

    public void setSendAll(int sendAll) {
        this.sendAll = sendAll;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        this.inTime = inTime;
    }

    public ArrayList<String> getImg() {
        return img;
    }

    public void setImg(ArrayList<String> img) {
        this.img = img;
    }

    public List<DeliveredEntity> getDelivered() {
        return delivered;
    }

    public void setDelivered(List<DeliveredEntity> delivered) {
        this.delivered = delivered;
    }

    public List<String> getUnpaid() {
        return unpaid;
    }

    public void setUnpaid(List<String> unpaid) {
        this.unpaid = unpaid;
    }
    public boolean isUp(){
        return sendAll != 0;
    }
    public static class DeliveredEntity {
        /**
         * level : A
         * comment : 好
         * name : 唐欣然
         */

        private String level;
        private String comment;
        private String name;

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
